import system from './system.js'
import dataimp from './dataimp.js'
import databaseedit from './databaseedit'
import usersmanagement from './usersmanagement'
import menu from './menu'
import useHome from './useHome'
export default [
    {
        path: '/',
        redirect: '/login'
    },
    {
        path: '/login',
        name: 'login',
        component: () => import('@/views/login/login') // 登录校验
    },
    // 说明:这块下面的children是将我们的访问的页面在同一页面显示
    {
        path: '/home',
        name: 'AdhocHome',
        component: () => import('@/views/home/AdhocHome'),
        children: [
            ...system,
            ...dataimp,
            ...databaseedit,
            ...usersmanagement,
            ...menu
        ]
    },
    {
        path: '/useHome',
        name: 'useHome',
        component: () => import('@/views/home/useHome'),
        children: [
            ...useHome,
        ]
    },
    {
        path: '/dataScreen-preview',
        name: 'dataScreenPreview',
        component: () => import('@/views/panel/DataScreen/Preview'),
        meta: { requiresAuth: true }
    }

]
